package com.chunuo.blogs.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 博客
 *
 * @author liujiamiao
 * @email 2544296058@qq.com
 * @date 2020-05-20 10:52
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(value = {"handler"})
public class Blogs implements Serializable {

    private Integer id;
    private String title;//博客标题
    private String content;//博客内容
    private String path;//博客首图地址
    private Integer status;//状态
    private Integer recommend;//是否推荐
    private Integer copyright;//是否授权
    private Date time;//时间
    private Integer userId;
    private Integer browse;//浏览人数

    private User user;//博主

    private List<Comment> commentList;
    private List<Tag> blogsTagList;
    private List<Classify> blogsClassifieList;


}
